package com.gome.ocean.service.authority;

import java.util.List;

import com.github.pagehelper.Page;
import com.gome.ocean.dao.model.authority.RoleFunction;

/**
 * Created by liuqingxia on 2016/6/1.
 */
public interface RoleFunctionService {

    public boolean insertRoleFunction(RoleFunction roleFunction);
    /**
     * 批量插入
     * */
    public void insertRoleFunction(Long roleId, List<Long> funcIds);

    public boolean removeRoleFunction(Long id);

    public boolean updateRoleFunction(RoleFunction roleFunction);

    public RoleFunction findRoleFunctionById(Long id);

    public Page<RoleFunction> findAllRoleFunctions(int pageNum, int pageSize);

    public List<RoleFunction> findRoleFunctionByRoleId(Long id);
    
    public boolean deleteRoleFuncByRoleId(Long roleId);
}
